package interfazgrafikoak;

import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JScrollPane;

import java.awt.Rectangle;
import javax.swing.JTextField;
import javax.swing.JTextArea;

public class TestuEremuak extends JFrame {

	private static final long serialVersionUID = 1L;

	private JScrollPane jScrollPane = null;
	
	private JPanel jContentPane = null;

	private JLabel jLabel = null;

	private JTextField jTextField = null;

	private JLabel jLabel1 = null;

	private JTextArea jTextArea = null;

	/**
	 * This is the default constructor
	 */
	public TestuEremuak() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(300, 200);
		this.setContentPane(getJContentPane());
		this.setTitle("JFrame");
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			jLabel1 = new JLabel();
			jLabel1.setBounds(new Rectangle(32, 75, 223, 16));
			jLabel1.setText("Utzi zure mezua:");
			jLabel = new JLabel();
			jLabel.setBounds(new Rectangle(31, 15, 106, 18));
			jLabel.setText("Sartu zure izena:");
			jContentPane = new JPanel();
			jContentPane.setLayout(null);
			jContentPane.add(jLabel, null);
			jContentPane.add(getJTextField(), null);
			jContentPane.add(jLabel1, null);
			jContentPane.add(getJScrollPane(), null);
		}
		return jContentPane;
	}

	/**
	 * This method initializes jTextField	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField() {
		if (jTextField == null) {
			jTextField = new JTextField();
			jTextField.setBounds(new Rectangle(150, 16, 125, 19));
		}
		return jTextField;
	}

	/**
	 * This method initializes jTextArea	
	 * 	
	 * @return javax.swing.JTextArea	
	 */
	private JTextArea getJTextArea() {
		if (jTextArea == null) {
			jTextArea = new JTextArea();
		}
		return jTextArea;
	}
	
	private JScrollPane getJScrollPane(){
		if (jScrollPane == null){
			jScrollPane = new JScrollPane();
			jScrollPane.setBounds(new Rectangle(31, 103, 241, 55));
			jScrollPane.setViewportView(getJTextArea());
		}
		return jScrollPane;
	}

}
